﻿
@{
    Layout = null;
    var user = ViewBag.user as HynuIOTA.Entity.User;
}
@{
    if (user != null)
    {
        <li><a data-cont="个人中心" title="个人中心" href="@Url.Action("Index","Manager",new {area = "Users"})">用户：@user.UserName </a></li>
        <li><a data-cont="退出登录" title="退出登录" href="@Url.Action("LoginOut","User",new {area = "Users"})">退出登录</a></li>
        <li><a data-cont="物联网协会首页" title="物联网协会首页" href="@Url.Content("~/Home/Index")">物联网协会首页</a></li>
        <li><a data-cont="博客列表页" title="博客列表页" href="@Url.RouteUrl("ArticleList", new {page = 1})">博客列表页</a></li>
        <li><a data-cont="标签云" title="标签云" href="@Url.Content("~/Blogs/Blog/TagList")">标签云</a></li>
    }
    else
    {
        <li><a data-cont="登录" title="登录" href="@Url.Action("Login","User",new {area = "Users"})">登录</a></li>
        <li><a data-cont="注册" title="注册" href="@Url.Action("Register","User",new {area = "Users"})">注册</a></li>
        <li><a data-cont="物联网协会首页" title="物联网协会首页" href="@Url.Content("~/Home/Index")">物联网协会首页</a></li>
        <li><a data-cont="博客列表页" title="博客列表页" href="@Url.RouteUrl("ArticleList", new {page = 1})">博客列表页</a></li>
        <li><a data-cont="标签云" title="标签云" href="@Url.Content("~/Blogs/Blog/TagList")">标签云</a></li>
    }
}
